package cn.bjxy.shishaolong.common;

/**
 * 系统常量
 * @author 时少龙
 */
public class SysConst {

    /**分页查询当前页的key*/
    public static final String PAGA_CURRENT_KEY = "current";

    /**分页查询每页显示个数的key*/
    public static final String PAGA_SIZE_KEY = "size";

    /**查询条件实体的key*/
    public static final String QUERY_CONDITION_KEY = "data";

    /**管理员工号前缀*/
    public static final String ADMIN_WORK_NO_PREFIX = "66";

    /**老师工号前缀*/
    public static final String TEACHER_WORK_NO_PREFIX = "88";

    /**批量删除时的id字符串*/
    public static final String BATCH_ID = "ids";

    /**批量删除时的id字符串*/
    public static final String BATCH_ID_SEPARATOR = ",";

    /**操作id*/
    public static final String ID = "id";

    /**请求封装的data*/
    public static final String DATA = "data";

    /**系统中所有角色的key值*/
    public static final String ROLE_KEY_ANONYMOUS = "anonymous";
    public static final String ROLE_KEY_STUDENT = "student";
    public static final String ROLE_KEY_TEACHER = "teacher";
    public static final String ROLE_KEY_ADMIN = "admin";
    public static final String ROLE_KEY_SUPER_ADMIN = "super_admin";

    /**返回客户登录信息的键*/
    public static final String RESULT_MAP_TOKEN = "token";

    /**当前用的id键*/
    public static final String CURRENT_USER_ID = "userId";


    /**用户管理中返回给客户端的键*/
    public static final String RESULT_ROLE_LIST = "roleList";
    public static final String RESULT_PROFESSION_LIST = "professionList";

    /**系统中问题的状态*/
    public static final int REQUEST_STATUS_BEANSWER = 1; //未回答
    public static final int REQUEST_STATUS_ANSWERING = 2; //回答中
    public static final int REQUEST_STATUS_ANSWERED = 3; //已采纳
    public static final int REQUEST_STATUS_OVERDUE = 4;  //已过期
    public static final int REQUEST_STATUS_REPORT_BEPROCESS = 5; //被举报处理中
    public static final int REQUEST_STATUS_ILLEGAL = 6; //违规
    public static final int REQUEST_STATUS_DELETED = 7; //已删除

    /**答疑室 相关的状态*/

//    '状态：1：正常， -1：待审批  默认1
//            ,'状态  1.正常   2.关闭    默认：1',
    public static final int RA_ROOM_STATUS_OK = 1;
    public static final int RA_ROOM_STATUS_CLOSE = 2;
    public static final int RA_ROOM_STATUS_DELETED = 3;
    public static final int RA_ROOM_STUDENT_STATUS_OK = 1;
    public static final int RA_ROOM_STUDENT_STATUS_NOTHANDLE = -1;

    /* 回答相关 */
    public static final int ANSWER_PLAIN = 1;
    public static final int ANSWER_RA_ROOM = 2;

    /*查询答疑室*/
    public static final int RA_ROOM_IS_ADMIN = 1;
    public static final int RA_ROOM_IS_NOT_ADMIN = 2;



}
